﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<qlqa.Models.Form.OrderForm.OrderForm>" %>
<%@ Import Namespace="qlqa.Models.LinQ" %>

<% if (Model.ListMonAn != null)
   {
       if (Model.ListMonAn.Any())
       {
           int stt = 1;
           foreach (tb_MonAn item in Model.ListMonAn)
           {
%>
            <tr>
                <td>
                    <%= stt %>
                </td>
                <td>
                    <%= item.Ten %>
                </td>
                <td>
                    <%= item.Gia %>
                </td>
                <td>
                    <%--<input id="SoLuong<%=item.Id %>" class="form-control input-sm length3" type="text"
                                        maxlength="3" placeholder="SL" value="1">--%>
                    <input id="SoLuong<%= item.Id %>" type="text" class="length3" maxlength="3" placeholder="SL" value="1">
                </td>
                <td>
                    <button class="btn btn-blue btn-xs" type="button" onclick=" ChonMonAjax(<%= item.Id %>); ">
                        Chọn</button>
                </td>
            </tr>
    <% stt++;
           }
       }
       else
       {
    %>
        <tr>
            <td colspan="5">
                Không tìm thấy.
            </td>
        </tr>
<%
     }
   } %>